// java接口环境配置
let javaApiEnv = {
  dev: {
    user: "http://user-server.xubei-test.com",
    api8: "http://api8.xubei-test.com",
    common: "http://common-server.xubei-test.com",
    passport: "http://passport-server.xubei-test.com",
    domain: "xubei-test.com",
  },
  pre: {
    user: "http://user-server.xubei-prd.com",
    api8: "http://api8.xubei-prd.com",
    common: "http://common-server.xubei-prd.com",
    passport: "http://passport-server.xubei-prd.com",
    domain: "xubei-prd.com",
  },
  prd: {
    user: "http://user-server.xubei.com",
    api8: "http://api8.xubei.com",
    common: "http://common-server.xubei.com",
    passport: "http://passport-server.xubei.com",
    domain: "xubei.com",
  },
};

let api = {};
if (process.env.NODE_ENV === "development") {
  api = javaApiEnv.dev;
} else if (process.env.NODE_ENV === "pre") {
  api = javaApiEnv.pre;
} else {
  api = javaApiEnv.prd;
}

export default api;
